﻿using ProjectA.Application.System.Services;

namespace ProjectA.Application
{
    /// <summary>
    /// 系统服务接口
    /// </summary>
    [ApiDescriptionSettings("吧Default")]
    [Route("pdX/[controller]")]
    public class SystemAppService : IDynamicApiController
    {
        private readonly IEntityAService entityAService;
        private readonly ISystemService _systemService;
        public SystemAppService(ISystemService systemService, IEntityAService entityAService)
        {
            _systemService = systemService;
            this.entityAService = entityAService;
        }

        /// <summary>
        /// 获取系统描述
        /// </summary>
        /// <returns></returns>
        public string GetDescription()
        {
            return _systemService.GetDescription();
        }
        /// <summary>
        /// 获取系统描述
        /// </summary>
        /// <returns></returns>
        public async Task<int> GetXa(string aaa)
        {
            return await entityAService.Insert(aaa);
        }
    }
}